home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / man / cat3 / XmSelectionBox.z.z / XmSelectionBox.z / XmSelectionBox
Encoding:
Text File  |  2003-11-18  |  29.6 KB  |  661 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))           UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV        XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       _X_m_S_e_l_e_c_t_i_o_n_B_o_x - The SelectionBox widget class
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.       #include <Xm/SelectioB.h>
  13.  
  14.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.       SelectionBox is a general dialog widget that allows the user
  16.       to select one    item from a list.  By default a    SelectionBox
  17.       includes the following:
  18.  
  19.       +o    A scrolling list    of alternatives
  20.  
  21.       +o    An editable text    field for the selected alternative
  22.  
  23.       +o    Labels for the list and text field
  24.  
  25.       +o    Three or    four buttons
  26.  
  27.       The default button labels are    _O_K, _C_a_n_c_e_l, and    _H_e_l_p.  By
  28.       default an _A_p_p_l_y button is also created; if the parent of
  29.       the SelectionBox is a    DialogShell it is managed, and
  30.       otherwise it is unmanaged.  Additional children may be added
  31.       to the SelectionBox after creation.  The first child is used
  32.       as a work area.  The value of    _X_m_N_c_h_i_l_d_P_l_a_c_e_m_e_n_t determines
  33.       if the work area is placed above or below the    Text area, or
  34.       above    or below the List area.     Additional children are laid
  35.       out in the following manner:
  36.  
  37.       +o    Menubar - The first menu    bar child is placed at the top
  38.            of the window.
  39.  
  40.       +o    Buttons - All _X_m_P_u_s_h_B_u_t_t_o_n widgets or gadgets, and
  41.            their subclasses    are placed after the _O_K    button in the
  42.            order of    their creation.
  43.  
  44.       +o    The layout of additional    children which are not in the
  45.            above categories    is undefined.
  46.  
  47.       The user can select an item in two ways:  by scrolling
  48.       through the list and selecting the desired item or by
  49.       entering the item name directly into the text    edit area.
  50.       Selecting an item from the list causes that item name    to
  51.       appear in the    selection text edit area.
  52.  
  53.       The user may select a    new item as many times as desired.
  54.       The item is not actually selected until the user presses the
  55.       _O_K PushButton.
  56.  
  57.       The default value for    the _X_m_B_u_l_l_e_t_i_n_B_o_a_r_d resource
  58.       _X_m_N_c_a_n_c_e_l_B_u_t_t_o_n is the Cancel    button unless _X_m_N_d_i_a_l_o_g_T_y_p_e is
  59.       _X_m_D_I_A_L_O_G__C_O_M_M_A_N_D, when the default is    NULL.  The default
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 11/11/03)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))           UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV        XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))
  71.  
  72.  
  73.  
  74.       value    for the    _X_m_B_u_l_l_e_t_i_n_B_o_a_r_d    resource _X_m_N_d_e_f_a_u_l_t_B_u_t_t_o_n is
  75.       the OK button    unless _X_m_N_d_i_a_l_o_g_T_y_p_e is    _X_m_D_I_A_L_O_G__C_O_M_M_A_N_D, when
  76.       the default is NULL.
  77.  
  78.       For SelectionBox and its subclasses, the default value for
  79.       _X_m_N_i_n_i_t_i_a_l_F_o_c_u_s is the text edit area.
  80.  
  81.       The user can specify resources in a resource file for    the
  82.       automatically    created    widgets    and gadgets of SelectionBox.
  83.       The following    list identifies    the names of these widgets (or
  84.       gadgets) and the associated SelectionBox areas.
  85.  
  86.       +o    List Items Label    - "Items"
  87.  
  88.       +o    List Items - "ItemsList"
  89.  
  90.       +o    Selection Label - "Selection"
  91.  
  92.       +o    Selection Text -    "Text"
  93.  
  94.       +o    Selection Separator - "Separator"
  95.  
  96.     CCCCllllaaaasssssssseeeessss
  97.       SelectionBox inherits    behavior and resources from _C_o_r_e,
  98.       _C_o_m_p_o_s_i_t_e, _C_o_n_s_t_r_a_i_n_t, _X_m_M_a_n_a_g_e_r, and    _X_m_B_u_l_l_e_t_i_n_B_o_a_r_d
  99.       Classes.
  100.  
  101.       The class pointer is _x_m_S_e_l_e_c_t_i_o_n_B_o_x_W_i_d_g_e_t_C_l_a_s_s.
  102.  
  103.       The class name is _X_m_S_e_l_e_c_t_i_o_n_B_o_x.
  104.  
  105.     NNNNeeeewwww RRRReeeessssoooouuuurrrrcccceeeessss
  106.       The following    table defines a    set of widget resources    used
  107.       by the programmer to specify data.  The programmer can also
  108.       set the resource values for the inherited classes to set
  109.       attributes for this widget.  To reference a resource by name
  110.       or by    class in a .Xdefaults file, remove the _X_m_N or _X_m_C
  111.       prefix and use the remaining letters.     To specify one    of the
  112.       defined values for a resource    in a .Xdefaults    file, remove
  113.       the _X_m prefix    and use    the remaining letters (in either
  114.       lowercase or uppercase, but include any underscores between
  115.       words).  The codes in    the access column indicate if the
  116.       given    resource can be    set at creation    time (C), set by using
  117.       _X_t_S_e_t_V_a_l_u_e_s (S), retrieved by    using _X_t_G_e_t_V_a_l_u_e_s (G), or is
  118.       not applicable (N/A).
  119.  
  120.                       XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
  121.      NNNNaaaammmmeeee               CCCCllllaaaassssssss             TTTTyyyyppppeeee          DDDDeeeeffffaaaauuuulllltttt            AAAAcccccccceeeessssssss
  122.      _____________________________________________________________________________________________________
  123.      XmNapplyCallback           XmCCallback         XtCallbackList      NULL                C
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                        (printed 11/11/03)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))           UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV        XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))
  137.  
  138.  
  139.  
  140.      XmNapplyLabelString       XmCApplyLabelString     XmString      dynamic            CSG
  141.      XmNcancelCallback           XmCCallback         XtCallbackList      NULL                C
  142.      XmNcancelLabelString      XmCCancelLabelString     XmString      dynamic            CSG
  143.      XmNchildPlacement           XmCChildPlacement     unsigned char      XmPLACE_ABOVE_SELECTION   CSG
  144.      XmNdialogType           XmCDialogType         unsigned char      dynamic            CG
  145.      XmNhelpLabelString           XmCHelpLabelString     XmString      dynamic            CSG
  146.      XmNlistItemCount           XmCItemCount         int          0                CSG
  147.      XmNlistItems           XmCItems             XmStringTable      NULL                CSG
  148.      XmNlistLabelString           XmCListLabelString     XmString      dynamic            CSG
  149.      XmNlistVisibleItemCount   XmCVisibleItemCount     int          dynamic            CSG
  150.      XmNminimizeButtons           XmCMinimizeButtons     Boolean      False                CSG
  151.      XmNmustMatch           XmCMustMatch         Boolean      False                CSG
  152.      XmNnoMatchCallback           XmCCallback         XtCallbackList      NULL                C
  153.      XmNokCallback           XmCCallback         XtCallbackList      NULL                C
  154.      XmNokLabelString           XmCOkLabelString         XmString      dynamic            CSG
  155.      XmNselectionLabelString   XmCSelectionLabelString     XmString      dynamic            CSG
  156.      XmNtextAccelerators       XmCTextAccelerators     XtAccelerators      default            C
  157.      XmNtextColumns           XmCColumns         short          dynamic            CSG
  158.      XmNtextString           XmCTextString         XmString      ""                CSG
  159.  
  160.  
  161.       _X_m_N_a_p_p_l_y_C_a_l_l_b_a_c_k
  162.            Specifies the list of callbacks called when the user
  163.            activates the _A_p_p_l_y button.  The    callback reason    is
  164.            _X_m_C_R__A_P_P_L_Y.
  165.  
  166.       _X_m_N_a_p_p_l_y_L_a_b_e_l_S_t_r_i_n_g
  167.            Specifies the string label for the _A_p_p_l_y    button.     The
  168.            default for this    resource depends on the    locale.     In
  169.            the C locale the    default    is "Apply".
  170.  
  171.       _X_m_N_c_a_n_c_e_l_C_a_l_l_b_a_c_k
  172.            Specifies the list of callbacks called when the user
  173.            activates the _C_a_n_c_e_l button.  The callback reason is
  174.            _X_m_C_R__C_A_N_C_E_L.
  175.  
  176.       _X_m_N_c_a_n_c_e_l_L_a_b_e_l_S_t_r_i_n_g
  177.            Specifies the string label for the _C_a_n_c_e_l button.  The
  178.            default for this    resource depends on the    locale.     In
  179.            the C locale the    default    is "Cancel".
  180.  
  181.       _X_m_N_c_h_i_l_d_P_l_a_c_e_m_e_n_t
  182.            Specifies the placement of the work area    child.    The
  183.            possible    values are:
  184.  
  185.       +o    _X_m_P_L_A_C_E__A_B_O_V_E__S_E_L_E_C_T_I_O_N - places    the work area child
  186.            above the Text area
  187.  
  188.       +o    _X_m_P_L_A_C_E__B_E_L_O_W__S_E_L_E_C_T_I_O_N - places    the work area child
  189.            below the Text area
  190.  
  191.       +o    _X_m_P_L_A_C_E__T_O_P - places the    work area child    above the List
  192.  
  193.  
  194.  
  195.      Page 3                        (printed 11/11/03)
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.      XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))           UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV        XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))
  203.  
  204.  
  205.  
  206.            area, and below a menubar, if one is present
  207.  
  208.       _X_m_N_d_i_a_l_o_g_T_y_p_e
  209.            Determines the set of SelectionBox children widgets
  210.            that are    created    and managed at initialization.    The
  211.            following are possible values:
  212.  
  213.       +o    _X_m_D_I_A_L_O_G__P_R_O_M_P_T - all standard children except the list
  214.            and list    label are created, and all except the _A_p_p_l_y
  215.            button are managed
  216.  
  217.       +o    _X_m_D_I_A_L_O_G__C_O_M_M_A_N_D    - only the list, the selection label,
  218.            and the text field are created and managed
  219.  
  220.       +o    _X_m_D_I_A_L_O_G__S_E_L_E_C_T_I_O_N - all    standard children are created
  221.            and managed
  222.  
  223.       +o    _X_m_D_I_A_L_O_G__F_I_L_E__S_E_L_E_C_T_I_O_N - all standard children are
  224.            created and managed
  225.  
  226.       +o    _X_m_D_I_A_L_O_G__W_O_R_K__A_R_E_A - all    standard children are created,
  227.            and all except the _A_p_p_l_y    button are managed
  228.  
  229.       If the parent    of the SelectionBox is a DialogShell, the
  230.       default is _X_m_D_I_A_L_O_G__S_E_L_E_C_T_I_O_N; otherwise, the    default    is
  231.       _X_m_D_I_A_L_O_G__W_O_R_K__A_R_E_A.  _X_m_C_r_e_a_t_e_P_r_o_m_p_t_D_i_a_l_o_g and
  232.       _X_m_C_r_e_a_t_e_S_e_l_e_c_t_i_o_n_D_i_a_l_o_g set and append this resource to the
  233.       creation aaaarrrrgggglllliiiisssstttt supplied by the application.     This resource
  234.       cannot be modified after creation.
  235.  
  236.       _X_m_N_h_e_l_p_L_a_b_e_l_S_t_r_i_n_g
  237.            Specifies the string label for the _H_e_l_p button.    The
  238.            default for this    resource depends on the    locale.     In
  239.            the C locale the    default    is "Help".
  240.  
  241.       _X_m_N_l_i_s_t_I_t_e_m_s
  242.            Specifies the items in the SelectionBox list.
  243.            _X_t_G_e_t_V_a_l_u_e_s for this resource returns the list items
  244.            themselves, not a copy of the list items.  The
  245.            application must    not free the returned items.
  246.  
  247.       _X_m_N_l_i_s_t_I_t_e_m_C_o_u_n_t
  248.            Specifies the number of items in    the SelectionBox list.
  249.            The value must not be negative.
  250.  
  251.       _X_m_N_l_i_s_t_L_a_b_e_l_S_t_r_i_n_g
  252.            Specifies the string label to appear above the
  253.            SelectionBox list containing the    selection items.  The
  254.            default for this    resource depends on the    locale.     In
  255.            the C locale the    default    is "Items" unless
  256.            _X_m_N_d_i_a_l_o_g_T_y_p_e is    _X_m_D_I_A_L_O_G__P_R_O_M_P_T; in that case the
  257.            default is NULL.
  258.  
  259.  
  260.  
  261.      Page 4                        (printed 11/11/03)
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.      XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))           UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV        XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))
  269.  
  270.  
  271.  
  272.       _X_m_N_l_i_s_t_V_i_s_i_b_l_e_I_t_e_m_C_o_u_n_t
  273.            Specifies the number of items displayed in the
  274.            SelectionBox list.  The value must be greater than 0
  275.            unless _X_m_N_d_i_a_l_o_g_T_y_p_e is _X_m_D_I_A_L_O_G__P_R_O_M_P_T;    in that    case
  276.            the value is always 0.  The default is dynamic based on
  277.            the height of the list.
  278.  
  279.       _X_m_N_m_i_n_i_m_i_z_e_B_u_t_t_o_n_s
  280.            Sets the    buttons    to the width of    the widest button and
  281.            height of the tallest button if False.  If True,    button
  282.            width and height    are not    modified.
  283.  
  284.       _X_m_N_m_u_s_t_M_a_t_c_h
  285.            Specifies whether the selection widget should check if
  286.            the user's selection in the text    edit field has an
  287.            exact match in the SelectionBox list when the _O_K    button
  288.            is activated.  If the selection does not    have an    exact
  289.            match, and _X_m_N_m_u_s_t_M_a_t_c_h is True,    the _X_m_N_n_o_M_a_t_c_h_C_a_l_l_b_a_c_k
  290.            callbacks are called.  If the selection does have an
  291.            exact match or if _X_m_N_m_u_s_t_M_a_t_c_h is False,    _X_m_N_o_k_C_a_l_l_b_a_c_k
  292.            callbacks are called.
  293.  
  294.       _X_m_N_n_o_M_a_t_c_h_C_a_l_l_b_a_c_k
  295.            Specifies the list of callbacks called when the user
  296.            makes a selection from the text edit field that does
  297.            not have    an exact match with any    of the items in    the
  298.            list box.  The callback reason is _X_m_C_R__N_O__M_A_T_C_H.
  299.            Callbacks in this list are called only if _X_m_N_m_u_s_t_M_a_t_c_h
  300.            is true.
  301.  
  302.       _X_m_N_o_k_C_a_l_l_b_a_c_k
  303.            Specifies the list of callbacks called when the user
  304.            activates the _O_K    button.     The callback reason is
  305.            _X_m_C_R__O_K.     If the    selection text does not    match a    list
  306.            item, and _X_m_N_m_u_s_t_M_a_t_c_h is True, the _X_m_N_n_o_M_a_t_c_h_C_a_l_l_b_a_c_k
  307.            callbacks are called instead.
  308.  
  309.       _X_m_N_o_k_L_a_b_e_l_S_t_r_i_n_g
  310.            Specifies the string label for the _O_K button.  The
  311.            default for this    resource depends on the    locale.     In
  312.            the C locale the    default    is "OK".
  313.  
  314.       _X_m_N_s_e_l_e_c_t_i_o_n_L_a_b_e_l_S_t_r_i_n_g
  315.            Specifies the string label for the selection text edit
  316.            field.  The default for this resource depends on    the
  317.            locale.    In the C locale    the default is "Selection".
  318.  
  319.       _X_m_N_t_e_x_t_A_c_c_e_l_e_r_a_t_o_r_s
  320.            Specifies translations added to the Text    widget child
  321.            of the SelectionBox.  The default includes bindings for
  322.            the up and down keys for    auto selection of list items.
  323.            This resource is    ignored    if _X_m_N_a_c_c_e_l_e_r_a_t_o_r_s is
  324.  
  325.  
  326.  
  327.      Page 5                        (printed 11/11/03)
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.      XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))           UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV        XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))
  335.  
  336.  
  337.  
  338.            initialized to a    nondefault value.
  339.  
  340.       _X_m_N_t_e_x_t_C_o_l_u_m_n_s
  341.            Specifies the number of columns in the Text widget.
  342.            The value must be greater than 0.
  343.  
  344.       _X_m_N_t_e_x_t_S_t_r_i_n_g
  345.            Specifies the text in the text edit selection field.
  346.  
  347.     IIIInnnnhhhheeeerrrriiiitttteeeedddd RRRReeeessssoooouuuurrrrcccceeeessss
  348.       SelectionBox inherits    behavior and resources from the
  349.       following superclasses.  For a complete description of each
  350.       resource, refer to the man page for that superclass.
  351.  
  352.                    XXXXmmmmBBBBuuuulllllllleeeettttiiiinnnnBBBBooooaaaarrrrdddd RRRReeeessssoooouuuurrrrcccceeee    SSSSeeeetttt
  353.      NNNNaaaammmmeeee           CCCCllllaaaassssssss        TTTTyyyyppppeeee         DDDDeeeeffffaaaauuuulllltttt    AAAAcccccccceeeessssssss
  354.      _________________________________________________________________________________
  355.      XmNallowOverlap       XmCAllowOverlap    Boolean         True        CSG
  356.      XmNautoUnmanage       XmCAutoUnmanage    Boolean         True        CG
  357.      XmNbuttonFontList       XmCButtonFontList    XmFontList     dynamic    CSG
  358.      XmNcancelButton       XmCWidget        Widget         dynamic    SG
  359.      XmNdefaultButton       XmCWidget        Widget         dynamic    SG
  360.      XmNdefaultPosition       XmCDefaultPosition    Boolean         True        CSG
  361.      XmNdialogStyle       XmCDialogStyle    unsigned char     dynamic    CSG
  362.      XmNdialogTitle       XmCDialogTitle    XmString     NULL        CSG
  363.      XmNfocusCallback       XmCCallback        XtCallbackList     NULL        C
  364.      XmNlabelFontList       XmCLabelFontList    XmFontList     dynamic    CSG
  365.      XmNmapCallback       XmCCallback        XtCallbackList     NULL        C
  366.      XmNmarginHeight       XmCMarginHeight    Dimension     10        CSG
  367.      XmNmarginWidth       XmCMarginWidth    Dimension     10        CSG
  368.      XmNnoResize       XmCNoResize        Boolean         False        CSG
  369.      XmNresizePolicy       XmCResizePolicy    unsigned char     XmRESIZE_ANY    CSG
  370.      XmNshadowType       XmCShadowType    unsigned char     XmSHADOW_OUT    CSG
  371.      XmNtextFontList       XmCTextFontList    XmFontList     dynamic    CSG
  372.      XmNtextTranslations   XmCTranslations    XtTranslations     NULL        C
  373.      XmNunmapCallback       XmCCallback        XtCallbackList     NULL        C
  374.  
  375.  
  376.                       XXXXmmmmMMMMaaaannnnaaaaggggeeeerrrr RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
  377.      NNNNaaaammmmeeee             CCCCllllaaaassssssss             TTTTyyyyppppeeee         DDDDeeeeffffaaaauuuulllltttt        AAAAcccccccceeeessssssss
  378.      _________________________________________________________________________________________________
  379.      XmNbottomShadowColor    XmCBottomShadowColor    Pixel         dynamic        CSG
  380.      XmNbottomShadowPixmap   XmCBottomShadowPixmap   Pixmap         XmUNSPECIFIED_PIXMAP    CSG
  381.      XmNforeground         XmCForeground         Pixel         dynamic        CSG
  382.      XmNhelpCallback         XmCCallback         XtCallbackList     NULL            C
  383.      XmNhighlightColor         XmCHighlightColor         Pixel         dynamic        CSG
  384.      XmNhighlightPixmap         XmCHighlightPixmap         Pixmap         dynamic        CSG
  385.      XmNinitialFocus         XmCInitialFocus         Widget         dynamic        CSG
  386.      XmNnavigationType         XmCNavigationType         XmNavigationType     XmTAB_GROUP        CSG
  387.      XmNshadowThickness         XmCShadowThickness         Dimension         dynamic        CSG
  388.  
  389.  
  390.  
  391.  
  392.  
  393.      Page 6                        (printed 11/11/03)
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.      XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))           UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV        XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))
  401.  
  402.  
  403.  
  404.      XmNstringDirection         XmCStringDirection         XmStringDirection     dynamic        CG
  405.      XmNtopShadowColor         XmCTopShadowColor         Pixel         dynamic        CSG
  406.      XmNtopShadowPixmap         XmCTopShadowPixmap         Pixmap         dynamic        CSG
  407.      XmNtraversalOn         XmCTraversalOn         Boolean         True            CSG
  408.      XmNunitType         XmCUnitType         unsigned char     dynamic        CSG
  409.      XmNuserData         XmCUserData         XtPointer         NULL            CSG
  410.  
  411.  
  412.                  CCCCoooommmmppppoooossssiiiitttteeee RRRReeeessssoooouuuurrrrcccceeee    SSSSeeeetttt
  413.      NNNNaaaammmmeeee         CCCCllllaaaassssssss             TTTTyyyyppppeeee       DDDDeeeeffffaaaauuuulllltttt   AAAAcccccccceeeessssssss
  414.      ______________________________________________________________________
  415.      XmNchildren     XmCReadOnly         WidgetList       NULL         G
  416.      XmNinsertPosition     XmCInsertPosition   XtOrderProc   NULL         CSG
  417.      XmNnumChildren     XmCReadOnly         Cardinal       0         G
  418.  
  419.  
  420.                            CCCCoooorrrreeee    RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
  421.      NNNNaaaammmmeeee                 CCCCllllaaaassssssss                 TTTTyyyyppppeeee          DDDDeeeeffffaaaauuuulllltttt             AAAAcccccccceeeessssssss
  422.      ______________________________________________________________________________________________________________
  423.      XmNaccelerators             XmCAccelerators             XtAccelerators   dynamic             N/A
  424.      XmNancestorSensitive         XmCSensitive             Boolean          dynamic             G
  425.      XmNbackground             XmCBackground             Pixel          dynamic             CSG
  426.      XmNbackgroundPixmap         XmCPixmap                 Pixmap          XmUNSPECIFIED_PIXMAP   CSG
  427.      XmNborderColor             XmCBorderColor             Pixel          XtDefaultForeground    CSG
  428.      XmNborderPixmap             XmCPixmap                 Pixmap          XmUNSPECIFIED_PIXMAP   CSG
  429.      XmNborderWidth             XmCBorderWidth             Dimension          0                 CSG
  430.      XmNcolormap             XmCColormap             Colormap          dynamic             CG
  431.      XmNdepth                 XmCDepth                 int          dynamic             CG
  432.      XmNdestroyCallback             XmCCallback             XtCallbackList   NULL             C
  433.      XmNheight                 XmCHeight                 Dimension          dynamic             CSG
  434.      XmNinitialResourcesPersistent   XmCInitialResourcesPersistent   Boolean          True             C
  435.      XmNmappedWhenManaged         XmCMappedWhenManaged         Boolean          True             CSG
  436.      XmNscreen                 XmCScreen                 Screen *          dynamic             CG
  437.      XmNsensitive             XmCSensitive             Boolean          True             CSG
  438.      XmNtranslations             XmCTranslations             XtTranslations   dynamic             CSG
  439.      XmNwidth                 XmCWidth                 Dimension          dynamic             CSG
  440.      XmNx                 XmCPosition             Position          0                 CSG
  441.      XmNy                 XmCPosition             Position          0                 CSG
  442.  
  443.  
  444.     CCCCaaaallllllllbbbbaaaacccckkkk IIIInnnnffffoooorrrrmmmmaaaattttiiiioooonnnn
  445.       A pointer to the following structure is passed to each
  446.       callback:
  447.       typedef struct
  448.       {
  449.         int         rrrreeeeaaaassssoooonnnn;
  450.         _X_E_v_e_n_t     **** eeeevvvveeeennnntttt;
  451.         _X_m_S_t_r_i_n_g     vvvvaaaalllluuuueeee;
  452.         _i_n_t         lllleeeennnnggggtttthhhh;
  453.       } _X_m_S_e_l_e_c_t_i_o_n_B_o_x_C_a_l_l_b_a_c_k_S_t_r_u_c_t;
  454.  
  455.       rrrreeeeaaaassssoooonnnn
  456.  
  457.  
  458.  
  459.      Page 7                        (printed 11/11/03)
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.      XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))           UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV        XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))
  467.  
  468.  
  469.  
  470.            Indicates why the callback was invoked
  471.  
  472.       eeeevvvveeeennnntttt
  473.            Points to the _X_E_v_e_n_t that triggered the callback
  474.  
  475.       vvvvaaaalllluuuueeee
  476.            Indicates the _X_m_S_t_r_i_n_g value selected by    the user from
  477.            the SelectionBox    list or    entered    into the SelectionBox
  478.            text field
  479.  
  480.       lllleeeennnnggggtttthhhh
  481.            Indicates the size in bytes of the _X_m_S_t_r_i_n_g value
  482.  
  483.     TTTTrrrraaaannnnssssllllaaaattttiiiioooonnnnssss
  484.       XmSelectionBox inherits translations from XmBulletinBoard.
  485.  
  486.     AAAAcccccccceeeelllleeeerrrraaaattttoooorrrrssss
  487.       The _X_m_N_t_e_x_t_A_c_c_e_l_e_r_a_t_o_r_s are added to the Text    descendant of
  488.       XmSelectionBox.  The default accelerators are    listed below.
  489.       These    accelerators may not directly correspond to a
  490.       translation table.
  491.       KUp:         SelectionBoxUpOrDown(0)
  492.       KDown:     SelectionBoxUpOrDown(1)
  493.       KBeginData:     SelectionBoxUpOrDown(2)
  494.       KEndData:     SelectionBoxUpOrDown(3)
  495.       KRestore:     SelectionBoxRestore()
  496.  
  497.     AAAAccccttttiiiioooonnnn RRRRoooouuuuttttiiiinnnneeeessss
  498.       The XmSelectionBox action routines are described below:
  499.  
  500.       _S_e_l_e_c_t_i_o_n_B_o_x_U_p_O_r_D_o_w_n(_0|_1|_2|_3):
  501.            When called with    a 0 argument, selects the previous
  502.            item in the list    and replaces the text with that    item.
  503.  
  504.       When called with a 1 argument, selects the next item in the
  505.       list and replaces the    text with that item.
  506.  
  507.       When called with a 2 argument, selects the first item    in the
  508.       list and replaces the    text with that item.
  509.  
  510.       When called with a 3 argument, selects the last item in the
  511.       list and replaces the    text with that item.
  512.  
  513.       _S_e_l_e_c_t_i_o_n_B_o_x_R_e_s_t_o_r_e():
  514.            Replaces    the text value with the    list selection.     If no
  515.            item in the list    is selected, clears the    text.
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.      Page 8                        (printed 11/11/03)
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.      XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))           UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV        XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))
  533.  
  534.  
  535.  
  536.     AAAAddddddddiiiittttiiiioooonnnnaaaallll BBBBeeeehhhhaaaavvvviiiioooorrrr
  537.       The SelectionBox widget has the additional behavior
  538.       described below:
  539.  
  540.       _M_A_n_y _K_C_a_n_c_e_l:
  541.            Calls the activate callbacks for    the cancel button if
  542.            it is sensitive.     If no cancel button exists and    the
  543.            parent of the SelectionBox is a manager,    passes the
  544.            event to    the parent.
  545.  
  546.       _K_A_c_t_i_v_a_t_e:
  547.            Calls the activate callbacks for    the button with    the
  548.            keyboard    focus.    If no button has the keyboard focus,
  549.            calls the activate callbacks for    the default button if
  550.            it is sensitive.     In a List widget or single-line Text
  551.            widget, the List    or Text    action associated with
  552.            _K_A_c_t_i_v_a_t_e is called before the SelectionBox actions
  553.            associated with _K_A_c_t_i_v_a_t_e.  In a    multi-line Text
  554.            widget, any _K_A_c_t_i_v_a_t_e event except _K_E_n_t_e_r calls the
  555.            Text action associated with _K_A_c_t_i_v_a_t_e, then the
  556.            SelectionBox actions associated with _K_A_c_t_i_v_a_t_e.    If no
  557.            button has the focus, no    default    button exists, and the
  558.            parent of the SelectionBox is a manager,    passes the
  559.            event to    the parent.
  560.  
  561.       <_O_K _B_u_t_t_o_n _A_c_t_i_v_a_t_e_d>:
  562.            If _X_m_N_m_u_s_t_M_a_t_c_h is True and the text does not match an
  563.            item in the file    list, calls the    _X_m_N_n_o_M_a_t_c_h_C_a_l_l_b_a_c_k
  564.            callbacks with reason _X_m_C_R__N_O__M_A_T_C_H.  Otherwise,    calls
  565.            the _X_m_N_o_k_C_a_l_l_b_a_c_k callbacks with    reason _X_m_C_R__O_K.
  566.  
  567.       <_A_p_p_l_y _B_u_t_t_o_n    _A_c_t_i_v_a_t_e_d>:
  568.            Calls the _X_m_N_a_p_p_l_y_C_a_l_l_b_a_c_k callbacks with reason
  569.            _X_m_C_R__A_P_P_L_Y.
  570.  
  571.       <_C_a_n_c_e_l _B_u_t_t_o_n _A_c_t_i_v_a_t_e_d>:
  572.            Calls the _X_m_N_c_a_n_c_e_l_C_a_l_l_b_a_c_k callbacks with reason
  573.            _X_m_C_R__C_A_N_C_E_L.
  574.  
  575.       <_H_e_l_p    _B_u_t_t_o_n _A_c_t_i_v_a_t_e_d>:
  576.            Calls the _X_m_N_h_e_l_p_C_a_l_l_b_a_c_k callbacks with    reason
  577.            _X_m_C_R__H_E_L_P.
  578.  
  579.       <_M_a_p_W_i_n_d_o_w>:
  580.            Calls the callbacks for _X_m_N_m_a_p_C_a_l_l_b_a_c_k if the
  581.            SelectionBox is a child of a Dialog shell.
  582.  
  583.       <_U_n_m_a_p_W_i_n_d_o_w>:
  584.            Calls the callbacks for _X_m_N_u_n_m_a_p_C_a_l_l_b_a_c_k    if the
  585.            SelectionBox is the child of a DialogShell.
  586.  
  587.     VVVViiiirrrrttttuuuuaaaallll    BBBBiiiinnnnddddiiiinnnnggggssss
  588.  
  589.  
  590.  
  591.      PPPPaaaaggggeeee 9999                        ((((pppprrrriiiinnnntttteeeedddd 11111111////11111111////00003333))))
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.      XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))           UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV        XXXXmmmmSSSSeeeelllleeeeccccttttiiiioooonnnnBBBBooooxxxx((((3333XXXX))))
  599.  
  600.  
  601.  
  602.       The bindings for virtual keys    are vendor specific.  For
  603.       information about bindings for virtual buttons and keys, see
  604.       _V_i_r_t_u_a_l_B_i_n_d_i_n_g_s(_3_X).
  605.  
  606.      RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
  607.       _C_o_m_p_o_s_i_t_e(_3_X), _C_o_n_s_t_r_a_i_n_t(_3_X), _C_o_r_e(_3_X),
  608.       _X_m_B_u_l_l_e_t_i_n_B_o_a_r_d(_3_X), _X_m_C_r_e_a_t_e_S_e_l_e_c_t_i_o_n_B_o_x(_3_X),
  609.       _X_m_C_r_e_a_t_e_S_e_l_e_c_t_i_o_n_D_i_a_l_o_g(_3_X), _X_m_C_r_e_a_t_e_P_r_o_m_p_t_D_i_a_l_o_g(_3_X),
  610.       _X_m_M_a_n_a_g_e_r(_3_X), and _X_m_S_e_l_e_c_t_i_o_n_B_o_x_G_e_t_C_h_i_l_d(_3_X).
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.      Page 10                        (printed 11/11/03)
  658.  
  659.  
  660.  
  661.